package com.wyz.interior.user.controller;

import com.wyz.interior.common.response.Result;
import com.wyz.interior.common.response.ResultGenerator;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description: 用户控制器
 * @Author: wei yz
 * @Date: 2023/5/28
 */
@RequestMapping("/user")
@RestController
public class UserController {


    @Value("${test.username:}")
    private String username;
    @Value("${test.password:}")
    private String password;

    @GetMapping("/v1/info")
    public Result username() {
        return ResultGenerator.genSuccessResult(String.format("用户名：%s, 密码：%s", username, password));
    }
}
